package com.ruoyi.school.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.school.mapper.MajorInformationMapper;
import com.ruoyi.school.domain.MajorInformation;
import com.ruoyi.school.service.IMajorInformationService;

/**
 * 专业信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-25
 */
@Service
public class MajorInformationServiceImpl implements IMajorInformationService 
{
    @Autowired
    private MajorInformationMapper majorInformationMapper;

    /**
     * 查询专业信息
     * 
     * @param id 专业信息主键
     * @return 专业信息
     */
    @Override
    public MajorInformation selectMajorInformationById(Long id)
    {
        return majorInformationMapper.selectMajorInformationById(id);
    }

    /**
     * 查询专业信息列表
     * 
     * @param majorInformation 专业信息
     * @return 专业信息
     */
    @Override
    public List<MajorInformation> selectMajorInformationList(MajorInformation majorInformation)
    {
        return majorInformationMapper.selectMajorInformationList(majorInformation);
    }

    /**
     * 新增专业信息
     * 
     * @param majorInformation 专业信息
     * @return 结果
     */
    @Override
    public int insertMajorInformation(MajorInformation majorInformation)
    {
        return majorInformationMapper.insertMajorInformation(majorInformation);
    }

    /**
     * 修改专业信息
     * 
     * @param majorInformation 专业信息
     * @return 结果
     */
    @Override
    public int updateMajorInformation(MajorInformation majorInformation)
    {
        return majorInformationMapper.updateMajorInformation(majorInformation);
    }

    /**
     * 批量删除专业信息
     * 
     * @param ids 需要删除的专业信息主键
     * @return 结果
     */
    @Override
    public int deleteMajorInformationByIds(Long[] ids)
    {
        return majorInformationMapper.deleteMajorInformationByIds(ids);
    }

    /**
     * 删除专业信息信息
     * 
     * @param id 专业信息主键
     * @return 结果
     */
    @Override
    public int deleteMajorInformationById(Long id)
    {
        return majorInformationMapper.deleteMajorInformationById(id);
    }
}
